import javax.print.attribute.standard.DateTimeAtCompleted;

public class Date {
    // 字段 年 月 日
    public int year;
    public int month;
    public int day;
    //public int n; // 没有任何用处
    /*public Date(int year,int month,int day){
        this.year =year;
        this.month =month;
        this.day = day;
    }
    public Date(int year,int month,int day,int n){
        this.year = year;
        this.month = month;
        this.day  = day;
        this.n = n;
    }*/
    // 方法
    // 创建日期

    // Java编译器自动生成
//    public Date(){
//
//    }
    // 使用 this 来创建对象

//      public Date(){
//        this(2024,11,23);
//
//    }

    public void setDate(int y,int m,int d){
        year = y;
        month = m;
        day = d;
    }
//    public void setDate(int year,int month,int day){
//        year = year;
//        month = month;
//        day = day;
//    }
//    public void setDate(int year,int month,int day){
//        this.year = year;
//        this.month = month;
//        this.day = day;
//    }
    // 打印日期
    public void printDate(){
        System.out.println(year + "年" + month + "月" + day + "日");
    }

    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date.day);
    }
    public static void main2(String[] args) {
//        Date date = new Date(2000,8,8);
//        date.printDate();
        //Date date1 = new Date(2000,11,11,2);
        //System.out.println(date1.n);
    }
}
